package com.hxh.dao;

import com.baomidou.mybatisplus.plugins.pagination.Pagination;
import com.hxh.entity.ProjectDatasource;
import com.hxh.entity.input.ProjectDatasourceInput;
import org.apache.ibatis.annotations.Param;

import java.util.List;


public interface ProjectDatasourceDao {

    Integer insert(ProjectDatasource pojo);

    int insertList(@Param("pojos") List<ProjectDatasourceInput> pojo);

    List<ProjectDatasource> select(@Param("pojo") ProjectDatasourceInput pojo);

    ProjectDatasource selectById(@Param("id") Integer id);

    int deleteById(@Param("id") Integer id);

    List<ProjectDatasource> listPage(Pagination page, @Param("pojo") ProjectDatasourceInput pojo);

    int update(@Param("pojo") ProjectDatasource pojo);

    int updateSelective(@Param("pojo") ProjectDatasourceInput pojo);

    List<ProjectDatasource> listAll();

    List<ProjectDatasource> selectByIds(@Param("list") List<String> ids);
}
